package kr.saeildamil.androidstudy_second.br;

import kr.saeildamil.androidstudy_second.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class NewsServiceTest extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch29and30_newsintentservicetest);
	}
	
	public void mOnClick(View v) {
		switch(v.getId()){
		case R.id.newsstart:
			startService(new Intent(this, NewsService.class));
			break;
		case R.id.newsstop:
			stopService(new Intent(this, NewsService.class));
			break;
		}
	}

}
